package com.example.common.utils;

import java.math.BigDecimal;

/**
 * <p>
 *     运费计算工具
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
public class FareUtils {

    public static BigDecimal getFare (String phone) {
        String fa = phone.substring(phone.length() - 1);
        return BigDecimal.valueOf(Long.parseLong(fa));
    }

}
